<!--
 * @Author: your name
 * @Date: 2022-03-03 14:51:16
 * @LastEditTime: 2022-03-03 14:59:25
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7window
 * @FilePath: \day05\12-this.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

    </script>
</head>
<body>
    <!-- this在事件之中 指向接受事件的html--元素 -->
    <button onclick="this.style.display='none'">点我消失</button>
</body>
<script>
    function findAll(){
    console.log(this,'在浏览器中this指向全局对象window');  //Object [global]
};
findAll()
</script>
</html>
